// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import request from './request'

/**
 * @description 领养动物 -- 列表
 */
export function adoptionListApi(data) {
  return request.get('/adoption/lst',data)
}

/**
 * @description 领养动物 -- 删除
 */
export function adoptionDeleteApi(id) {
  return request.delete('/adoption/delete/'+id)
}



/**
 * @description 领养动物 -- 审核
 */
export function adoptionStatusApi(id,data) {
  return request.put('/adoption/adoptionStatus/'+id,data)
}


/**
 * @description 领养动物 -- 显示状态修改
 */
export function adoptionShowApi(adoption_id,status) {
  return request.put('/adoption/adoptionShow/'+adoption_id,{status})
}

// export function adoptionShowApi(data) {
//   return request.put('/adoption/adoptionShow/'+data)
// }

/**
 * @description 领养动物 -- 详情
 */
export function adoptionDetailApi(adoption_id) {
  return request.get('/adoption/adoptionDetail/'+adoption_id)
}


/**
 * @description 领养记录 -- 列表
 */
export function adoptionRecordListApi(data) {
  return request.get('/adoptionRecord/lst',data)
}


/**
 * @description 领养记录 -- 详情
 */
export function adoptionRecordDetailApi(record_id) {
  return request.get('/adoptionRecord/detail/'+record_id)
}

/**
 * @description 领养记录 -- 打卡记录
 */
export function adoptionRecordClockApi(record_id) {
  return request.get('/adoptionReturn/lst/'+record_id)
}


/**
 * @description 领养记录 -- 审核
 */
export function adoptionRecordStatusApi(id,data) {
  return request.put('/adoptionRecord/adoptionStatus/'+id,data)
}


/**
 * @description 领养记录 -- 删除
 */
export function adoptionRecordDeleteApi(record_id) {
  return request.delete('/adoptionRecord/delete/'+record_id)
}
